﻿package mortal.game.scene3D.ai.ais
{
    import mortal.game.scene3D.ai.base.*;
    import mortal.game.scene3D.ai.data.*;

    public class CallBackAI extends AICommand
    {

        public function CallBackAI()
        {
            return;
        }// end function

        override public function start(param1:Function = null) : void
        {
            super.start(param1);
            var _loc_2:* = this._data as CallBackData;
            if (_loc_2 != null && _loc_2.callback != null)
            {
                if (_loc_2.params != null)
                {
                    _loc_2.callback.apply(null, [_loc_2.params]);
                }
                else
                {
                    _loc_2.callback.apply();
                }
            }
            super.stop(false);
            return;
        }// end function

    }
}
